package com.ahaoyou.compnent;

import com.ahaoyou.annotation.TableHandler;
import com.ahaoyou.utils.TableOperate;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;

@Component
@TableHandler(table = "user",operate = TableOperate.DELETE)
public class UserDeleteHandler implements ITableHandler {
    @Override
    public void handler(JSONObject newJson, JSONObject oldJson) {
        System.out.println("user表删除新数据"+newJson);
        System.out.println("user表删除老数据"+oldJson);
    }
}
